<!DOCTYPE HTML><html xmlns:th="http://www.thymeleaf.org"       xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">    <head>    <meta content="text/html;charset=UTF-8"/>        <title sec:authentication="name">Spring Security入门</title>    </head>    <body>		<span th:if="${session.SPRING_SECURITY_CONTEXT}">				欢迎 <span th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.username}"></span>		</span>				 <div sec:authorize="hasRole('RM_XT_000001')"> <!-- 用户类型为ROLE_ADMIN 显示 -->            <p class="bg-info">管理员权限</p>        </div>				<a th:href="@{/logout}">退出</a>		        <h1>欢迎使用Spring Security!</h1>        <p>点击 <a th:href="@{/hello}">这里</a> 打个招呼吧</p>    </body></html>